package cn.ahaiahaixx.supemarketonline.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.ahaiahaixx.supemarketonline.base.BaseUserController;
import cn.ahaiahaixx.supemarketonline.model.TbSubTypeModel;
import cn.ahaiahaixx.supemarketonline.service.SubTypeService;
import cn.ahaiahaixx.supemarketonline.utils.JsonMessage;

/**
 * 用户控制器
 * 
 * @author Aiden Pearce
 *
 */
@RestController
@RequestMapping("/usersubtype")
public class UserSubTypeController extends BaseUserController {
//登录校验完成
  @Autowired
  private SubTypeService subTypeService;

  @RequestMapping("/add")
  public JsonMessage add(TbSubTypeModel model) throws Exception {
    return subTypeService.add(model);
  }
  
  //{"subType.tid":"1","subType.subName":"我是你爹","subType.subInfo":"第一个帖子"}
  //成功
  


}
